<%--
    Document   : edit
    Created on : Dec 13, 2008, 10:26:33 PM
    Author     : mamat-dev
--%>

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Customer</title>
    </head>
    <body>
        <h2>Edit Customer</h2>
        <form:form action="edit.htm?action=1" commandName="customer">            
            <table border="1" width="100%">
                <tr>
                    <td>Firstname</td>
                    <td>:</td>
                    <td>
                        <form:input path="firstname" />
                        <form:hidden path="id"/>
                    </td>
                </tr>
                <tr>
                    <td>Lastname</td>
                    <td>:</td>
                    <td><form:input path="lastname"/></td>
                </tr>
                <tr>
                    <td>Age</td>
                    <td>:</td>
                    <td><form:input path="age" /></td>
                </tr>
                <tr>
                    <td colspan="3"><input type="submit" value="Edit" /></td>
                </tr>

            </table>
        </form:form>
        <div>
            <a href="index.htm">Index</a>|<a href="list.htm">List</a>|
        <a href="add.htm">Add</a>|<a href="edit.htm?id=${rows.id}">Edit</a>
        </div>
        
    </body>
</html>
